package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 社区图片表 danmo_community_picture
 * @author : kunzong
 * @date : 2024-11-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoCommunityPicture extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 图片表唯一id */
    @Excel(name = "图片表唯一id")
    private Long id;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long productId;

    /** 帖子图片 */
    @Excel(name = "帖子图片")
    private String picture;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateBy;

    /** 更新时间 */
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 图片备注 */
    @Excel(name = "图片备注")
    private String remark;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productId", getProductId())
                .append("picture", getPicture())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}